using SqlSugar;
using System.ComponentModel;

namespace ZR.Model.System
{
    /// <summary>
    /// 报警列表
    /// </summary>
    [SugarTable("alarm_list", "报警列表")]
    public class AlarmList
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [DisplayName("类型")]
        [SugarColumn(ColumnName = "alarm_type", Length = 50, ColumnDescription = "报警类型")]
        public string Type { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        [DisplayName("城市")]
        [SugarColumn(ColumnName = "city", Length = 100, ColumnDescription = "所属城市")]
        public string City { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime? UpdateTime { get; set; } = DateTime.Now;
    }
}

